package com.itheima.web;

import com.itheima.service.CheckGroupItemService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/checkgroupitem")
public class CheckGroupItemController {
    @DubboReference
    private CheckGroupItemService checkGroupItemService;
    @RequestMapping("findItemIdsByGroupId/{id}")
    public Long[] findByGroupId(@PathVariable("id") Long id){
        return checkGroupItemService.findItemIdsByGroupId(id);
    }
}
